package org.example.serviceoffice.feign;

import org.example.serviceoffice.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "file-transfer-client", url = "http://39.104.78.210:8000", configuration = FeignConfig.class)
public interface FileTransferFeignClient {

    @PostMapping(value = "/extract-zip-images", consumes = "multipart/form-data")
    ResponseEntity<String> transferFile(@RequestPart("zip_file") MultipartFile zip_file);
}